package cn.tedu.spring6;

public class People {
    //简单类型
    private String name;

    private int age;

    private boolean sex;

    //c命名空间是简化构造注入的。
    //c命名空间注入办法是基于构造方法的。


    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                '}';
    }

    public People(String name, int age, boolean sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
}
